package gg;

import java.util.Random;

public class shuzhu {
    public static void main(String[] args) {
        System.out.println("随机数组的平均数为：");
        int[] array=new int[10];
        Random r=new Random();
        int num=0;
        int  pinjun;
        for (int i = 0; i < array.length; i++) {
            array[i]=r.nextInt(99)+1;
            num+=array[i];

            System.out.print(array[i]+"+");
        }
        pinjun=num/10;
        System.out.print("="+pinjun);

    }
}
